using System;
using System.Collections.Generic;
using System.Text;

namespace Musicman.Client.Utilities
{
    [Serializable]
    public class AutomaticDownloaderSettings
    {
        public const string SAVE_TO_DOWNLOADS = "Save to downloads";
        public const string GIVE_UP = "Give up";


        private bool useDownloader;
        private int retryTimes = 1;
        private int retryMin = 1;
        private string failureAction;
        private bool useDefaultFolder;
        private string defaultFolder;
        
        private string[] failureActions = new string[] { SAVE_TO_DOWNLOADS, GIVE_UP };

        public bool UseDownloader
        {
            get { return useDownloader; }
            set { useDownloader = value; }
        }

        public int RetryTimes
        {
            get { return retryTimes; }
            set { retryTimes = value; }
        }

        public int RetryMin
        {
            get { return retryMin; }
            set { retryMin = value; }
        }

        public string FailureAction
        {
            get { return failureAction; }
            set { failureAction = value; }
        }

        public string[] FailureActions
        {
            get { return failureActions; }
            set { failureActions = value; }
        }

        public bool UseDefaultFolder
        {
            get { return useDefaultFolder; }
            set { useDefaultFolder = value; }
        }

        public string DefaultFolder
        {
            get { return defaultFolder; }
            set { defaultFolder = value; }
        }

    }
}
